package com.company.state;

public class StateModeTest {

    public void run() {
        Context context = new Context();
        context.setState(new StartState());
        System.out.println(context.getState().toString());

        context.setState(new RunState());
        System.out.println(context.getState().toString());

        context.setState(new StopState());
        System.out.println(context.getState().toString());
    }
}
